﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Logging
{
    public class Logger
    {
        public static void Log(string Message, LogLevel level)
        {
            Console.WriteLine(string.Format("{0}: \t -- {1} -- \n {2}", System.DateTime.Now.ToLongTimeString(), level.ToString(), Message));
        }

        public static void Log(string Message, LogLevel level, Exception e)
        {
            Log(string.Format("Message {0}:\n\t {1}", Message, e.ToString()), level);
        }
    }

    public enum LogType
    {
        Console
    }

    public enum LogLevel
    {
        Trace,
        Info,
        Debug,
        Warning,
        Error,
        Fatal
    }
}
